import "react-app-polyfill/ie11";
import React from "react";
import ReactDOM from "react-dom";
import reportWebVitals from "./reportWebVitals";
import App from "./App";
import { store, StorageStore } from "./store";
import { PersistGate } from "redux-persist/integration/react";
import { Provider } from "react-redux";
import "./styles/index.less";

/* @dynamic version */
window.ParaWeb = {
  name: "console",
  version: "0.1.0",
  env: "",
  buildTime: "10/18/2021, 5:45:10 PM",
};
/* @dynamic end */

const init = async () => {
  ReactDOM.render(
    <Provider store={store}>
      <PersistGate loading={null} persistor={StorageStore}>
        <App />
      </PersistGate>
    </Provider>,
    document.getElementById("root")
  );
  reportWebVitals();
};
init();
